CREATE TABLE [dbo].[ArchiveReportBaseObject]
(
[Id] [int] NOT NULL IDENTITY(1, 1),
[ArchiveReportId] [int] NOT NULL,
[ReportBaseObjectId] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ArchiveReportBaseObject] ADD CONSTRAINT [PK_ArchiveReportBaseObject] PRIMARY KEY CLUSTERED  ([Id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ArchiveReportBaseObject] ADD CONSTRAINT [FK_ArchiveReportBaseObject_ArchiveReport] FOREIGN KEY ([ArchiveReportId]) REFERENCES [dbo].[ArchiveReport] ([Id])
GO
ALTER TABLE [dbo].[ArchiveReportBaseObject] ADD CONSTRAINT [FK_ArchiveReportBaseObject_ReportBaseObject] FOREIGN KEY ([ReportBaseObjectId]) REFERENCES [dbo].[ReportBaseObject] ([Id])
GO
